

function ColorConfig() {
    this.gArr = new Array();
    this.init = function() {
        this.gArr.push(new ColorInfo("#000", "#ede5da"));  // 1
        this.gArr.push(new ColorInfo("#000", "#ecdbbd"));  // 2
        this.gArr.push(new ColorInfo("#fff", "#f0b17b"));  // 3
        this.gArr.push(new ColorInfo("#fff", "#f6935c"));  // 4
        this.gArr.push(new ColorInfo("#fff", "#f57656"));  // 5
        this.gArr.push(new ColorInfo("#fff", "#f5532d"));  // 6
        this.gArr.push(new ColorInfo("#fff", "#edce73"));  // 7
        this.gArr.push(new ColorInfo("#fff", "#e6d353"));  // 8
        this.gArr.push(new ColorInfo("#fff", "#d0a40d"));  // 9
        this.gArr.push(new ColorInfo("#fff", "#e6b407"));  // 10
        this.gArr.push(new ColorInfo("#fff", "#8FBC8F"));  // 11
        this.gArr.push(new ColorInfo("#fff", "#228B22"));  // 12
        this.gArr.push(new ColorInfo("#fff", "#ffadad"));  // 13
        this.gArr.push(new ColorInfo("#fff", "#ADD8E6"));  // 14
        this.gArr.push(new ColorInfo("#fff", "#2F4F4F"));  // 15
        this.gArr.push(new ColorInfo("#fff", "#cb9974"));  // 16
        this.gArr.push(new ColorInfo("#fff", "#76553c"));  // 17
        this.gArr.push(new ColorInfo("#fff", "#40E0D0"));  // 18
        this.gArr.push(new ColorInfo("#fff", "#008B8B"));  // 19
        this.gArr.push(new ColorInfo("#fff", "#DDA0DD"));  // 20
        // this.gArr.push(new ColorInfo("#000", "#FFFF99 "));  // 1
        // this.gArr.push(new ColorInfo("#fff", "#99CC33"));  // 2
        // this.gArr.push(new ColorInfo("#fff", "#99CC00"));  // 3
        // this.gArr.push(new ColorInfo("#fff", "#339933 "));  // 4
        // this.gArr.push(new ColorInfo("#fff", "#CC6699"));  // 5
        // this.gArr.push(new ColorInfo("#fff", "#669999"));  // 6
        // this.gArr.push(new ColorInfo("#fff", "#CC99CC"));  // 7
        // this.gArr.push(new ColorInfo("#fff", "#669933"));  // 8
        // this.gArr.push(new ColorInfo("#fff", "#FFCC33"));  // 9
        // this.gArr.push(new ColorInfo("#fff", "#CCFFCC"));  // 10
        // this.gArr.push(new ColorInfo("#fff", "#CCFFFF"));  // 11
        // this.gArr.push(new ColorInfo("#fff", "#003366"));  // 12
        // this.gArr.push(new ColorInfo("#fff", "#FF9999"));  // 13
        // this.gArr.push(new ColorInfo("#fff", "#CCCCFF"));  // 14
        // this.gArr.push(new ColorInfo("#fff", "#990066"));  // 15
        // this.gArr.push(new ColorInfo("#fff", "#9999CC"));  // 16
        // this.gArr.push(new ColorInfo("#fff", "#FF9933"));  // 17
        // this.gArr.push(new ColorInfo("#fff", "#996699"));  // 18
        // this.gArr.push(new ColorInfo("#fff", "#999966"));  // 19
        // this.gArr.push(new ColorInfo("#fff", "#FF6666"));  // 20
    }
    this.getColorByValue = function(value) {
        return this.gArr[(value-1) % this.gArr.length];
    }
};
var gColorConfig = new ColorConfig();
gColorConfig.init();
